package com.ph.website.home.param;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class HomeCertParam {

    @Data
    public static class AddParam{
        @NotNull
        private String imgUrl;
        @NotNull
        private Integer usable;
        @NotNull
        @Max(10)
        @Min(1)
        private Integer orderNum;
    }

    @Data
    public static class ModifyParam{
        @NotNull
        private Integer certId;
        @NotNull
        private String imgUrl;
        @NotNull
        private Integer usable;
        @NotNull
        @Max(10)
        @Min(1)
        private Integer orderNum;
    }

    @Data
    public static class DeleteParam{
        @NotNull
        private Integer certId;
    }
}
